package com.cnap.multiclouldmgmt.util;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.JsonNode;
import org.junit.jupiter.api.Test;

import java.util.HashMap;
import java.util.Map;

import static cn.hutool.jwt.RegisteredPayload.JWT_ID;
import static cn.hutool.jwt.RegisteredPayload.SUBJECT;
import static org.junit.jupiter.api.Assertions.*;

class TokenUtilsTest {

    @Test
    void setTOKEN() {

        TokenUtils.getUserName();

        TokenUtils.setTOKEN("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTY3MTgxMTAwNCwiaWF0IjoxNjcxNzk2NjA0NTUxLCJqdGkiOjF9.sjlTxHlRy8fVQ9C3bn1asCPnvEl8AozD1aGonI7ImZ0");

        TokenUtils.getTOKEN();
        TokenUtils.getUserName();
        TokenUtils.getUserId();

    }

    @Test
    void getTOKEN() {
    }

    @Test
    void getUserName() {
    }

    @Test
    void getUserId() {
    }
}